<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>可疑人员管理</title>

    <!-- Bootstrap core CSS -->
    <link href="/GasManager/Admin/View//Public/static/css/bootstrap.css" rel="stylesheet">
    <link href="/GasManager/Admin/View//Public/static/css/ui-dialog.css" rel="stylesheet">

    <!-- Add custom CSS here -->
    <link href="/GasManager/Admin/View//Public/static/css/sb-admin.css" rel="stylesheet">
    <link rel="stylesheet" href="/GasManager/Admin/View//Public/static/font-awesome/css/font-awesome.min.css">
</head>

<body>

<div id="wrapper">

    <!-- Sidebar -->
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">管理后台</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">

            <ul class="nav navbar-nav side-nav">

    <li>
        <a href="<?php echo U('Index/index');?>"><i class="fa fa-dashboard"></i>可疑人员管理</a>
    </li>

    <li class="dropdown">
        <a href="<?php echo U('Map/index');?>"><i class="fa fa-reorder"></i> 地图显示 </a>
    </li>

    <li class="dropdown">
        <a href="<?php echo U('Statistics/index');?>"><i class="fa fa-reorder"></i> 统计 </a>
    </li>



    <!--<li class="dropdown">-->
        <!--<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i> 可疑人员管理 <b class="caret"></b></a>-->
        <!--<ul class="dropdown-menu">-->
            <!--<li><a href="#">批量导入</a></li>-->
            <!--<li><a href="#">单个信息录入</a></li>-->
            <!--<li><a href="#">状态管理</a></li>-->
        <!--</ul>-->
    <!--</li>-->
</ul>

            <ul class="nav navbar-nav navbar-right navbar-user">

                <li class="dropdown user-dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i>
                        你好,<?php echo session('username');?> <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo U('login/logout');?>"><i class="fa fa-power-off"></i> 退出</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </nav>
<div id="page-wrapper">

    <div class="row">
        <div class="col-md-2">
            <a href="<?php echo U('Index/multi');?>" class="btn btn-success">批量录入</a>
        </div>
        <div class="col-md-2">
            <a href="<?php echo U('Index/single');?>" class="btn btn-success">单条录入</a>
        </div>
        <div class="col-md-4">
            <form action="<?php echo U('Index/index');?>" method="post">
                <div class="form-group input-group">
                    <input type="text" class="form-control" name="key" placeholder="输入姓名或者身份证号关键词搜索">
                    <span class="input-group-btn">
                      <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
                    </span>
                </div>
            </form>
        </div>
    </div>
    <table class="table table-hover table-striped">
        <thead>
        <tr>
            <th>姓名</th>
            <th>性别</th>
            <th>民族</th>
            <th>实际地址</th>
            <th>人员类型</th>
            <th>风险等级</th>
            <th>管辖民警</th>
            <th>布控状态</th>
            <th>布控时间</th>

        </tr>
        </thead>
        <tbody>
        <?php if(is_array($model)): foreach($model as $key=>$v): ?><tr>
                <td><?php echo ($v["name"]); ?></td>
                <td><?php echo ($v["sex"]); ?></td>
                <td><?php echo ($v["mz"]); ?></td>

                <td><?php echo ($v["resident_current"]); ?></td>
                <td><?php echo ($v["type"]); ?></td>
                <td><?php echo ($v["risk_grade"]); ?></td>

                <td><?php echo ($v["polices"]); ?></td>
                <td>
                    <!--<?php echo ($v["bk_status"]); ?>-->
                    <span class="label label-primary">可控</span>
                </td>
                <td><?php echo (date("Y/m/d H:i:s",$v["time_bk"])); ?></td>
            </tr><?php endforeach; endif; ?>
        </tbody>
    </table>
    <?php echo ($page); ?>
</div>


<!-- JavaScript -->
<script src="/GasManager/Admin/View//Public/static/js/jquery-1.10.2.js"></script>
<script src="/GasManager/Admin/View//Public/static/js/bootstrap.js"></script>
<script src="/GasManager/Admin/View//Public/static/js/app.js"></script>

</body>
</html>